package com.gl.order.controller;

import com.cloud.utils.ResultHelper;
import com.gl.user.api.IUserApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
public class OrderController {

    @Autowired
    private IUserApi apiUser;


    @GetMapping(value = "/order/internal", params = "username")
    public ResultHelper order(String username) {
        return apiUser.findByUsername(username);
    }



}
